package cherry.data.service;

import cherry.data.util.Result;
import cherry.data.view.request.CherryHomePageRequest;
import cherry.data.view.response.CherryHomePageResponse;
import com.github.pagehelper.PageInfo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.io.Serializable;

/**
 * @author 谢宇翔
 * @version 1.0.0
 * @ClassName CherryHomePageService.java
 * @Description 数据访问主页，数据展示提供，接口
 * @createTime 2022年02月06日 15:14:00
 */
public interface CherryHomePageService   {

    /**
     * @ClassName CherryHomePageService.java
     * @author 谢宇翔
     * @version 1.0.0
     * @Description 分页查询数据
     * @createTime 2022年02月06日 15:35:00
     */
    @RequestMapping(value = "/api/v1/cherry/home/findPage", method = RequestMethod.POST)
    Result<PageInfo<CherryHomePageResponse>> findPage(long userId,CherryHomePageRequest request);
}
